The Compositable and DynamicImage interfaces extend the ImageSpec interface. The Compositable interface captures the ability of image data to have a graphics mode applied to it when it is rendered. Graphics modes include rendering effects such as transparency, where any pixels of a particular color in the image data won't be drawn, and blending, where all of the drawn colors of an image are blended with a blend color to alter the rendered image.
The DynamicImage interface extends Compositable and expresses the fact that some pixel data may change. This interface is used by the Compositor , as a TwoDSprite must invalidate its Sprite if the pixel data changes.
| Previous | Chapter Top | Next |